package com.hjm.project.merchantInfo.merSyncRecord.service.impl;

import com.hjm.common.utils.text.Convert;
import com.hjm.project.merchantInfo.merSyncRecord.domain.MerSyncRecord;
import com.hjm.project.merchantInfo.merSyncRecord.mapper.MerSyncRecordMapper;
import com.hjm.project.merchantInfo.merSyncRecord.service.IMerSyncRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author yzb
 */
@Service
public class MerSyncRecordImpl implements IMerSyncRecordService {

    @Resource
    private MerSyncRecordMapper merSyncRecordMapper;
    @Override
    public MerSyncRecord selectMerSyncRecordById(String id) {
        return merSyncRecordMapper.selectMerSyncRecordById(id);
    }

    @Override
    public List<MerSyncRecord> selectMerSyncRecordList(MerSyncRecord merSyncRecord) {
        return merSyncRecordMapper.selectMerSyncRecordList(merSyncRecord);
    }

    @Override
    public int insertMerSyncRecord(MerSyncRecord merSyncRecord) {
        return merSyncRecordMapper.insertMerSyncRecord(merSyncRecord);
    }

    @Override
    public int updateMerSyncRecord(MerSyncRecord merSyncRecord) {
        return merSyncRecordMapper.updateMerSyncRecord(merSyncRecord);
    }

    @Override
    public int deleteMerSyncRecordByIds(String ids) {
        return merSyncRecordMapper.deleteMerSyncRecordByIds(Convert.toStrArray(ids));
    }

    @Override
    public int deleteMerSyncRecordById(Integer id) {
        return merSyncRecordMapper.deleteMerSyncRecordById(id);
    }
}
